package com.top.art.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.top.art.bo.StudioBO;
import com.top.art.bo.StudioExamineeBO;
import com.top.art.entity.ExamineeInfo;
import com.top.art.entity.StudioInfo;
import com.top.art.vo.ProvinceVO;
import com.top.art.vo.StudioVo;
import com.top.art.vo.WorksStatisticsVO;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
 * <p>
 * 画室信息表 服务类
 * </p>
 *
 * @author hjh
 * @since 2020-10-05
 */
public interface IStudioInfoService extends IService<StudioInfo> {

    /**
     * 新增画室，考生报名
     * @param studioInfo
     * @return
     */
    public boolean saveData(StudioInfo studioInfo, MultipartFile examineeFile) throws IOException;

    public boolean update(StudioInfo studioInfo);


    /**
     * 画室列表查询
     * @param bo
     * @return
     */
    IPage<StudioInfo> page(StudioBO bo);

    /**
     * 操作：启用/停用
     * @return
     */
    boolean operationActivity(StudioBO bo);

    /**
     * 查看、编辑、修改
     * @param bo
     * @return
     */
    StudioVo queryOrupdateByCode(StudioBO bo);


    List<WorksStatisticsVO> queryCount(String studioCode);

    List<ProvinceVO> queryProvince();

    boolean deleteStudio(Integer id);

    StudioVo countExaminationInfo(String provinceCode);

}
